import request from '@/utils/request'

export function showDepartmentList(query) {
  return request({
    url: '/department/show',
    method: 'get',
    params: query
  })
}

export function saveDepartment(data) {
  return request({
    url: '/department/save',
    method: 'post',
    data
  })
}

export function getDepartmentList() {
  return request({
    url: '/department/list',
    method: 'get'
  })
}
